#pragma once
#include "XCom.h"
#include "XMsgEvent.h"
class XCOM_API XServiceHandle:public XMsgEvent {
public:
    const static int CLIENT_IP_LEN = 16;
    XServiceHandle() = default;
    ~XServiceHandle() = default;
    void set_client_ip(const char* ip);
    char *client_ip(){return client_ip_;}
    void set_client_port(unsigned short port){client_port_=port;}
    unsigned short client_port(){return client_port_;}
private:
    char client_ip_[CLIENT_IP_LEN] = {0};
    unsigned short client_port_ = 0;
};